﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NguoiDung.aspx.cs" Inherits="QuanTriHeThong_NguoiDung" MasterPageFile="~/MasterPage.master" %>

<asp:Content ContentPlaceHolderID=ContentPlaceHolder1 runat=server>
<body>

    <div>
			 <table align="center" width="970px" >
                  <tr  >
                <td >
                 <table ID ="TableCenter">
                        <TBODY>
                        <TR class="TVLibPageTitle">
                        <TD width="50%">
                                            <asp:Label ID="Label9" runat="server" Text="DANH SÁCH NGƯỜI DÙNG"></asp:Label>
                                           
                        </TD>
                        <TD colSpan=2>
                        <asp:label id="lblPageTitle2" runat="server">THÔNG TIN CHI TIỂT</asp:label>
                        </TD>
                        </TR>
                        <TR>
                        <TD align=left width="45%"><asp:HyperLink id="lnkUser" runat="server">Thay đổi thông tin cá nhân</asp:HyperLink><BR />
                            </TD><TD align=left><asp:Label id="Label1" runat="server" Text="* Khi cập nhật tài khoản, chỉ nhập mật khẩu khi muốn thay đổi mật khẩu cũ"></asp:Label></TD></TR><TR><TD vAlign=top><TABLE id="table4" cellSpacing=0 cellPadding=2 width="100%" border=0><TBODY><TR><TD align ="left" >
                                            &nbsp;</TD></TR><TR><TD>
                                            <asp:GridView ID="grvNguoiDung" runat="server" Width="100%" 
                                                AutoGenerateColumns="False" DataKeyNames="NguoiDungID" 
                                                                    onrowcancelingedit="grvNguoiDung_RowCancelingEdit" 
                                                                    onrowdeleting="grvNguoiDung_RowDeleting" 
                                                                    onrowediting="grvNguoiDung_RowEditing"  >
                                                
                                                <Columns>
                                               <%-- <asp:TemplateColumn HeaderText="Căn lề">
										                        <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
										                        <ItemTemplate>
											                        <asp:DropDownList Runat="server" ID="ddlAlign" Width="100%">
												                        <asp:ListItem Value="CenterTop">Center</asp:ListItem>
												                        <asp:ListItem Value="RightTop">Right</asp:ListItem>
												                        <asp:ListItem Value="LeftTop">Left</asp:ListItem>
											                        </asp:DropDownList>
										                        </ItemTemplate>
									                        </asp:TemplateColumn>--%>
                        									
                                                    <asp:TemplateField HeaderText="Họ tên">
                                                      
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblHoVaTen" runat="server" Text='<%# Bind("TenNguoiDung") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="TenDangNHap" HeaderText="Tên đăng nhập" />
                                                    <asp:BoundField DataField="Email" HeaderText="Email" />
                                                    <asp:BoundField DataField="NguoiDungID" HeaderText="NguoiDungID" 
                                                        Visible="False" />
                                                    <asp:CommandField ButtonType="Image" 
                                                        CancelImageUrl="~/Resources/Images/Cancel.gif" 
                                                        EditImageUrl="~/Resources/Images/Edit.gif" HeaderText="Sửa" 
                                                        ShowEditButton="True" UpdateImageUrl="~/Resources/Images/Edit.gif">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:CommandField>
                                                    <asp:TemplateField HeaderText="Xóa" ShowHeader="False">
                                                        <ItemTemplate>
                                                            <asp:ImageButton OnClientClick ="return confirm('Bạn có chắc chắn muốn xóa?')" ID="ImageButton1" runat="server" 
                                                                CommandName="Delete" ImageUrl="~/Resources/Images/delete.gif" Text="Delete" />
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                           
                                <BR />
                           </TD></TR>
                            </TBODY>
                            </TABLE>
                            </TD>
                            <TD vAlign=top>
                            <TABLE id="table3" cellSpacing=0 cellPadding=2 width="100%" border=0>
                            <TBODY>
                            <TR>
                            <TD style="WIDTH: 208px" align=right>
                                            <asp:Label ID="Label2" runat="server" Text="Họ tên:"></asp:Label>
                            </TD><TD style="WIDTH: 246px; HEIGHT: 20px" align=left>
                                            <asp:TextBox ID="txthoten" runat="server" Width="60%"></asp:TextBox>
                                                                   <asp:Label id="Label11" runat="server" ForeColor="Red" Text="(*)"></asp:Label> </TD></TR>
                               <TD style="WIDTH: 208px" align=right>
                                             <asp:Label ID="Label3" runat="server" Text="Tên đăng nhập:"></asp:Label>
                            </TD><TD style="WIDTH: 246px; HEIGHT: 20px" align=left>
                                            <asp:TextBox ID="txtTenDangNhap" runat="server" Width="50%" ></asp:TextBox> 
                                                                   <asp:Label id="Label12" runat="server" ForeColor="Red" Text="(*)"></asp:Label> 
                                </TD></TR>
                               <TD style="WIDTH: 208px" align=right>
                                            <asp:Label ID="Label7" runat="server" Text="Email: "></asp:Label>
                            </TD><TD style="WIDTH: 246px; HEIGHT: 20px" align=left>
                                            
                                            <asp:TextBox ID="txtEmail" runat="server" Width="60%"></asp:TextBox>
                                            
                                </TD></TR>                             
                                                                   <TR><TD style="WIDTH: 208px; HEIGHT: 20px" align=right>
                                            
                                            <asp:Label ID="Label4" runat="server" Text="Điên thoại:"></asp:Label>
                                            
                                                                       </TD><TD style="WIDTH: 246px; HEIGHT: 20px" align=left>
                                            
                                            <asp:TextBox ID="txtDienthoai" runat="server" Width="40%"></asp:TextBox>
                                            
                                                                       </TD></TR><TR><TD style="WIDTH: 208px" align=right>
                                            
                                            <asp:Label ID="Label8" runat="server" Text="Ghi chú:"></asp:Label>
                                            
                                            </TD><TD align=left> 
                                            
                                            <asp:TextBox ID="txtGhiChu" runat="server" Width="70%"></asp:TextBox>
                                            
                                    </TD></TR><TR><TD style="WIDTH: 208px" align=right>
                                             <asp:Label ID="Label5" runat="server" Text="Mật khẩu:"></asp:Label>
                                        </TD><TD align=left> 
                                            <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password" Width="50%"></asp:TextBox>
                                        <asp:Label id="lbRedPassword" runat="server" ForeColor="Red" Text="(*)"></asp:Label> 
                                    </TD></TR><TR><TD style="WIDTH: 208px" align=right><asp:label id="lbReTypePass" runat="server" Width="60%"><u>G</u>õ lại mật khẩu:</asp:label></TD><TD style="WIDTH: 246px; HEIGHT: 15px" align=left>
                                    <asp:textbox id="txtGoLaiMatKhau" runat="server" CssClass="lbTextBox" 
                                        Width="50%" MaxLength="50" TextMode="Password"></asp:textbox><asp:Label id="lbRetPassword2" runat="server" ForeColor="Red" Text="(*)"></asp:Label> </TD></TR><TR class ="TVLibFunctionTitle"><TD style="HEIGHT: 8px" class="lbPageTitle" align=center colSpan=2>
                                    <asp:Label id="Label15" runat="server" Text="Quyền truy cập vào các phân hệ" 
                                       ></asp:Label></TD><TD style="HEIGHT: 8px"></TD></TR><TR ><TD style="WIDTH: 208px; HEIGHT: 20px" align=right>
                            <asp:Label id="lblAdmin" runat="server" 
                                Text="&lt;u&gt;Q&lt;/u&gt;uản trị hệ thống" Width="60%"></asp:Label></TD><TD style="HEIGHT: 20px"><TABLE width="100%"><TBODY><TR><TD align=left width="20%">
                                    <asp:DropDownList ID="drdlQTHT" runat="server" 
                                        >
                                        <asp:ListItem>0</asp:ListItem>
                                        <asp:ListItem>1</asp:ListItem>
                                    </asp:DropDownList>
                                    </TD><TD align=left width="80%"> 
                                        <asp:HyperLink ID="lnkQTHT" runat="server" 
                                            NavigateUrl="#">Gán quyền</asp:HyperLink>
                                    </TD></TR></TBODY></TABLE></TD></TR>
                                    <TR><TD style="WIDTH: 208px; HEIGHT: 20px" align=right>
                            <asp:Label id="lblRequest" runat="server" Text="&lt;u&gt;B&lt;/u&gt;ổ sung - Biên mục" 
                                Width="60%"></asp:Label></TD><TD style="HEIGHT: 20px"><TABLE width="100%"><TBODY><TR><TD align=left width="20%">
                                    <asp:DropDownList ID="drdlBSBM" runat="server" 
                                            >
                                        <asp:ListItem>0</asp:ListItem>
                                        <asp:ListItem>1</asp:ListItem>
                                    </asp:DropDownList>
                                        </TD><TD align=left width="80%"> 
                                                <asp:HyperLink ID="lnkBSBM" runat="server" 
                                                    NavigateUrl="#">Gán quyền</asp:HyperLink>
                                            </TD></TR></TBODY></TABLE></TD>  </TR>
                                         <TR><TD style="WIDTH: 208px; HEIGHT: 20px" align=right>
                            <asp:Label id="lblRequest0" runat="server" Text="&lt;u&gt;L&lt;/u&gt;ưu thông" 
                                Width="60%"></asp:Label></TD><TD style="HEIGHT: 20px"><TABLE width="100%"><TBODY><TR><TD align=left width="20%">
                                    <asp:DropDownList ID="drdlLuuThong" runat="server" 
                                           >
                                        <asp:ListItem>0</asp:ListItem>
                                        <asp:ListItem>1</asp:ListItem>
                                    </asp:DropDownList>
                                        </TD><TD align=left width="80%"> 
                                                     <asp:HyperLink ID="lnkQLLuuThong" runat="server" 
                                                         NavigateUrl="#">Gán quyền</asp:HyperLink>
                                                 </TD></TR></TBODY></TABLE></TD>  </TR>
                                          <TR><TD style="WIDTH: 208px; HEIGHT: 20px" align=right>
                            <asp:Label id="Label6" runat="server" Text="Bạn &lt;u&gt;Đ&lt;/u&gt;ọc" 
                                Width="60%"></asp:Label></TD><TD style="HEIGHT: 20px"><TABLE width="100%"><TBODY><TR><TD align=left width="20%">
                                    <asp:DropDownList ID="drdlBanDoc" runat="server" 
                                           >
                                        <asp:ListItem>0</asp:ListItem>
                                        <asp:ListItem>1</asp:ListItem>
                                    </asp:DropDownList>
                                        </TD><TD align=left width="80%"> 
                                                     <asp:HyperLink ID="lnkBanDoc" runat="server" NavigateUrl="#">Gán quyền</asp:HyperLink>
                                                 </TD></TR></TBODY></TABLE></TD>  </TR>
                                        <TR ><TD align=center colSpan=2>
                                            <asp:Button ID="btnThemmoi" runat="server" Text="Thêm mới" Width="79px" 
                                                onclick="btnThemmoi_Click" />
                        &nbsp;&nbsp;
                                            <asp:Button ID="btnThoi" runat="server" Text="Làm Lại" Width="79px" 
                                                onclick="btnThoi_Click" />
                            </TD></TR>
                                        <TR class="TVLibControlBar"><TD align=center colSpan=2>
                                            &nbsp;</TD></TR></TBODY> </TABLE>  </TD></TR></TBODY>
                      </TABLE>
                      
                  </td>
                  </tr>
                  </table>    
    <INPUT id="hdParams" type=hidden runat="server" />
     <INPUT id="hdPassword" type=hidden runat="server" /> 
     <INPUT id="hidParentID" type=hidden runat="server" />
      <INPUT id="hidUserID" type=hidden value="0" runat="server" /> 
      <INPUT id="hdRights" type=hidden runat="server" /> 
      <INPUT id="hidUpdate" type=hidden runat="server" />
      <INPUT id="hidQuyenIDs" type=hidden runat="server" />
       
      </div>
    <%-- <asp:TemplateColumn HeaderText="Căn lề">
										                        <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
										                        <ItemTemplate>
											                        <asp:DropDownList Runat="server" ID="ddlAlign" Width="100%">
												                        <asp:ListItem Value="CenterTop">Center</asp:ListItem>
												                        <asp:ListItem Value="RightTop">Right</asp:ListItem>
												                        <asp:ListItem Value="LeftTop">Left</asp:ListItem>
											                        </asp:DropDownList>
										                        </ItemTemplate>
									                        </asp:TemplateColumn>--%>
    </div>
    
</body>
</asp:Content>

